package com.fuh.study.factory.method;

/**
 * @创建人 fuh
 * @创建时间 2021/4/12  16:53
 * @描述
 */
public class Consumer {
    public static void main(String[] args) {
        Car car = new TeslaFactory().getCar();
        Car car1 = new WuLingFactory().getCar();
        car.name();
        car1.name();
    }
}
